/**
 * Tales
 * 
 * 09/10/2013
 * 
 * Copyright GPL
 */
package info.victor.content;

import java.sql.Date;

/**
 * This class stores a Tale
 */
public class Tale {

	private int id;
	private int idUser;
	private Date creationDate;
	private String title;
	private String tale;
	
	/**
	 * @param id
	 * @param idUser
	 * @param creationDate
	 * @param title
	 * @param tale
	 */
	public Tale(int id, int idUser, Date creationDate, String title,
			String tale) {
		this.id = id;
		this.idUser = idUser;
		this.creationDate = creationDate;
		this.title = title;
		this.tale = tale;
	}


	/**
	 * returns the id
	 * @return
	 */
	public int getId() {
		return id;
	}

	/**
	 * returns the title
	 * @return
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * returns the tale
	 * @return
	 */
	public String getTale() {
		return tale;
	}

	/**
	 * returns the id of user
	 * @return
	 */
	public int getIdUser() {
		return idUser;
	}

	/**
	 * this returns the creation's date
	 * @return
	 */
	public Date getCreationDate() {
		return creationDate;
	}

}
